package run.siyuan.model;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 委员会计费
 *
 * @author jinjingsu
 * @date 2021/03/19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("commission_billing")
public class CommissionBilling extends IdIncrEntity {
    // @ApiModelProperty("佣金记录Id")
    private Long commissionRecordId;
    // @ApiModelProperty("业务ID")
    private Long businessId;
    // @ApiModelProperty("结算账单Id")
    private Long commissionBillingId;
    // @ApiModelProperty("店主Id")
    private Long memberId;
    // @ApiModelProperty("店主等级")
    private Integer storeOwnerLevel;
    // @ApiModelProperty("商家Id")
    private Long sellerId;
    // @ApiModelProperty("下单用户Id")
    private Long fromMemberId;
    // @ApiModelProperty("佣金率")
    private BigDecimal commissionRate;
    // @ApiModelProperty("订单Id")
    private Long orderId;
    // @ApiModelProperty("子订单Id")
    private Long subOrderId;
    // @ApiModelProperty("商品Id")
    private Long itemId;
    // @ApiModelProperty("商品skuId")
    private Long skuId;
    // @ApiModelProperty("数量")
    private Integer quantity;
    // @ApiModelProperty("商品状态")
    private Integer itemStatus;
    // @ApiModelProperty("单价")
    private BigDecimal unitFee;
    // @ApiModelProperty("订单商品金额")
    private BigDecimal orderFee;
    // @ApiModelProperty("平台优惠")
    private BigDecimal platformOffers;
    // @ApiModelProperty("商家优惠")
    private BigDecimal merchantOffers;
    // @ApiModelProperty("税前佣金")
    private BigDecimal commissionBeforeTax;
    // @ApiModelProperty("税后佣金")
    private BigDecimal commissionAfterTax;
    // @ApiModelProperty("所得税税率")
    private BigDecimal withholdingTax;
    // @ApiModelProperty("退回佣金金额")
    private BigDecimal refundCommission;
    // @ApiModelProperty("实际佣金金额")
    private BigDecimal actualCommission = BigDecimal.ZERO;
    // @ApiModelProperty("佣金状态：1-待打款 2-已打款 3-已取消 4-部分取消")
    private Integer commissionStatus;
    // @ApiModelProperty("类型：1-平台 2-店主")
    private Integer type;
    // @ApiModelProperty("备注")
    private String remark;
    // @ApiModelProperty("订单明细表Id")
    private Long orderItemId;
    // @ApiModelProperty("下单日期")
    private Long orderTime;
    // @ApiModelProperty("商品类型：0-普通商品 1-礼包商品 2-礼包plus 3-lazada推广联盟商品 4-升级奖励")
    private Integer isGift;
    // @ApiModelProperty("商品标题")
    private String itemTitle;
    // @ApiModelProperty("商品主图片地址")
    private String itemPictUrl;
    // @ApiModelProperty("分佣描述：0-间接 1-直接")
    private Integer direct;
    // @ApiModelProperty("打款时间")
    private Long settlementTime;
    // @ApiModelProperty("是否是代购单 0不是 1是")
    private Boolean isBehalf;
    // @ApiModelProperty("开始时间")
    private Long startTime;
    // @ApiModelProperty("结束时间")
    private Long endTime;
    // @ApiModelProperty("是否显示")
    private Boolean isShow;
    // @ApiModelProperty("结算类型：1-正向 2-逆向")
    private Integer commissionType;
    // @ApiModelProperty("来源：1-ypk 3-lazada推广联盟 4.升级奖励 5.注册奖励 7.分享奖励")
    private Integer source;
    // @ApiModelProperty("是否进入余额")
    private Boolean entryBalance;
    // @ApiModelProperty("进入余额时间")
    private Long entryBalanceTime;
}
